package com.mallcloud.mall.mall.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mallcloud.mall.mall.api.entity.MallOrderCouponModel;
import com.mallcloud.mall.mall.api.entity.vo.MallOrderCouponVO;

import java.util.List;

/**
 * mall券订单
 */
public interface MallOrderCouponService extends IService<MallOrderCouponModel> {

	/**
	 * 补偿
	 * @param ids
	 * @return
	 */
	Boolean compensate(List<Long> ids);

	/**
	 * 分页查询
	 * @param page
	 * @param dto
	 * @return
	 */
	Page pageOrderCoupon(Page<MallOrderCouponVO> page, MallOrderCouponModel dto);

	/**
	 * 订单券列表
	 * @param dto
	 * @return
	 */
	List<MallOrderCouponVO> listOrderCoupon(MallOrderCouponModel dto);

	List<MallOrderCouponVO> listByOrderNos(List<String> orderNos);

}
